<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>音乐播放器练习实例</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f4f4f9;
            margin: 0;
        }
        .container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 300px;
        }
        h1 {
            color: #333;
        }
        p {
            color: #666;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>欢迎来到我的简单网站</h1>
        <p>这是一个包含音乐播放器的练习实例。</p>
        <!-- 音乐播放器容器 -->
        <div id="music-player"></div>
    </div>

    <!-- 引入音乐播放器脚本 -->
    <script src="https://musicplayer.xfyun.club/dist/xfMusicPlayer.min.js"></script>
    <script>
        // 初始化音乐播放器
        const player = new XFMusicPlayer({
            containerId: 'music-player',
            playlist: [
                { title: 'Song 1', artist: 'Artist 1', url: 'https://api.deezer.com/preview/track/3135556' },
                { title: 'Song 2', artist: 'Artist 2', url: 'https://api.deezer.com/preview/track/3135557' }
            ]
        });
    </script>
</body>
</html>